package com.dong.settlement.service;

import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Random;

@Service
public class SettlementService {
    /**
     * 这里实际要实现真正的结算业务代码
     * @param accountId
     * @param amount
     * @return
     */
    public Integer settlement(Integer accountId, BigDecimal amount) {
        Random random = new Random(25);
        return random.nextInt(10000000);
    }
}
